package com.oa.common.enums;

import com.oa.common.interfaces.CodeStatus;

/**
 * @name 公文类型的使用分类
 * @author Yang
 *
 */
public enum  AppsUserType  implements CodeStatus {

    /** 按人员 **/
    USER(0,"按人员"),

    /** 按部门 **/
    DEPARTMENT(1,"按部门"),

    /** 按职位 **/
    POSITION(2,"按职位")
    ;

    private int code;

    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message= message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code= code;
    }

    AppsUserType(int code,String message){
        this.code= code;
        this.message= message;
    }
}
